<template>
  <div>
    <!-- 样式配置 -->
    <el-tabs v-model="activeName" type="border-card" class="demo-tabs">
      <el-tab-pane label="样式设置" name="first">
        <Common></Common>
      </el-tab-pane>
      <!-- 数据配置 -->
      <el-tab-pane label="数据配置" name="second">
        <el-form label-width="100px" label-position="left">
          <el-form-item label="标题名称:">
            <el-input
              v-model="modelItem.data.title"
              type="text"
              maxlength="15"
              show-word-limit
            />
          </el-form-item>
          <el-form-item label="自我评价:">
            <el-input
              v-model="modelItem.data.content"
              type="textarea"
              maxlength="500"
              show-word-limit
              :rows="5"
            />
          </el-form-item>
        </el-form>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import Common from '@/options/Common.vue'
import selectModelItem from '@/hooks/selectModel.ts' //当前选中模块
const modelItem = selectModelItem()
const activeName = ref('first')
</script>
<style lang="scss" scoped>
:deep(.el-input) {
  width: 80%;
  height: 27px;
  line-height: 27px;
  margin-right: 2px;
}

:deep(.el-form-item__label) {
  font-size: 13px;
}
:deep(.el-tabs--border-card) {
  border: 0;
}
/* 日期选择器 */
:deep(.el-range-editor.el-input__wrapper) {
  width: 200px;
}
</style>
